/*
* 命名空间: Authority.Model
*
* 功 能： SysButton实体类
*
* 类 名： SysButtonEntity
*
* Version   变更日期            负责人     变更内容
* ─────────────────────────────────────────────────
* V1.0.1    2019/09/27 14:26:13 罗维     创建
*
* Copyright (c) 2019 Lir Corporation. All rights reserved.
*/

namespace Authority.Model
{
    using System;
    using Tool.Model;

    /// <summary>
    /// 按钮信息表
    /// </summary>
    [Serializable]
    [DBTableInfo(TableName = "SysButton")]
    public class SysButtonEntity
    {

        /// <summary>
        /// 唯一标识符
        /// </summary>
        [DBFieldInfo(ByteLength = 32,DataLength = 32,DecimalDigits = 0,ColumnName = "gCode",Required = true,DefaultValue = "",IsPrimarykey = true)]
        public string gCode
        {
            get; set;
        }

        /// <summary>
        /// 按钮名称
        /// </summary>
        [DBFieldInfo(ByteLength = 40,DataLength = 20,DecimalDigits = 0,ColumnName = "sName",Required = true,DefaultValue = "",IsPrimarykey = false)]
        public string sName
        {
            get; set;
        }

        /// <summary>
        /// 按钮Class
        /// </summary>
        [DBFieldInfo(ByteLength = 200,DataLength = 100,DecimalDigits = 0,ColumnName = "sClass",Required = true,DefaultValue = "",IsPrimarykey = false)]
        public string sClass
        {
            get; set;
        }

        /// <summary>
        /// 按钮Icon
        /// </summary>
        [DBFieldInfo(ByteLength = 200,DataLength = 100,DecimalDigits = 0,ColumnName = "sIcon",Required = false,DefaultValue = "",IsPrimarykey = false)]
        public string sIcon
        {
            get; set;
        }

        /// <summary>
        /// 放置按鈕的ID
        /// </summary>
        [DBFieldInfo(ByteLength = 200,DataLength = 100,DecimalDigits = 0,ColumnName = "sId",Required = true,DefaultValue = "",IsPrimarykey = false)]
        public string sId
        {
            get; set;
        }

        /// <summary>
        /// 按钮html源码
        /// </summary>
        [DBFieldInfo(ByteLength = 4000,DataLength = 2000,DecimalDigits = 0,ColumnName = "sHtml",Required = true,DefaultValue = "",IsPrimarykey = false)]
        public string sHtml
        {
            get; set;
        }

        /// <summary>
        /// 列表按钮html源码
        /// </summary>
        [DBFieldInfo(ByteLength = 4000,DataLength = 2000,DecimalDigits = 0,ColumnName = "sHtmlXs",Required = true,DefaultValue = "",IsPrimarykey = false)]
        public string sHtmlXs
        {
            get; set;
        }

        /// <summary>
        /// 按鈕授权码
        /// </summary>
        [DBFieldInfo(ByteLength = 200, DataLength = 100, DecimalDigits = 0, ColumnName = "sAuthorizationCode", Required = true, DefaultValue = "", IsPrimarykey = false)]
        public string sAuthorizationCode
        {
            get; set;
        }

        /// <summary>
        /// 排序字段
        /// </summary>
        [DBFieldInfo(ByteLength = 8,DataLength = 53,DecimalDigits = 0,ColumnName = "iSort",Required = true,DefaultValue = "((0))",IsPrimarykey = false)]
        public double iSort
        {
            get; set;
        }

        /// <summary>
        /// 是否被逻辑删除
        /// </summary>
        [DBFieldInfo(ByteLength = 1, DataLength = 1, DecimalDigits = 0, ColumnName = "bIsDeleted", Required = false, DefaultValue = "((0))", IsPrimarykey = false)]
        public bool bIsDeleted
        {
            get; set;
        }
    }
}
